{__NOLAYOUT__}<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>产品授权系统</title>
<link href="./Public/Css/index.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src='./Public/Js/jquery.min.js'></script>
<script type="text/javascript" src='./Public/Js/jquery.validate.js'></script>
<script type="text/javascript" src='./Public/Js/jquery.form.js'></script>
<script type="text/javascript" src='./Public/Js/jquery.cookie.js'></script>
<style type="text/css">
        body{font-size:12px;}
        /* form中显示文字的label */
        .label{
            width:150px;
            display: -moz-inline-box;
            line-height: 1.8;
            display: inline-block;
            text-align:right;
        }
        /* 出错样式 */
        input.error, textarea.error{
            border: solid 1px #CD0A0A;
        }
        label.error{
            color:#CD0A0A;
            margin-left:100px;
        }
        /* 深红色文字 */
        .textred{
            color:#ff0000;
        }
    </style>
</head>
<body>
<div class="all">
  <div class="denglu-middle">
    <div class="denglu-main">
      <div class="denglu-logo">
        <h3>BizHUB产品授权系统</h3>
      </div>
         
      <div class="denglu-kuang">
        <div class="denglu-main-left">
          <div class="denglu-ifram flt">
            <div class="denglu-left-inside"></div>
          </div>
                          
          <div class="denglu-window flt">
            <div class="denglu-window-tab flt">
              <ul>
                <li class="denglu-window-userlogin flt">
                  <div class="denglu-window-left flt"></div>
                  <div class="denglu-window-mid flt">用户登录</div>
                  <div class="denglu-window-right flt"></div>
                </li>
              </ul>
            </div>
         
            <div class="denglu-window-main flt">               
              <div class="denglu-content">
                <form method='post' name="login" id="loginForm" action="{:U('Login/doLogin')}">
				<span id='loginInfo' style='display:none'><label class='error'>用户名或密码错误</label></span>
                <ul>
                <li><label class="denglu-uname">用户名：</label><input class="denglu-input denglu-input-name" type="text" name="username" value="" id='username'/></li>
                <li><label class="denglu-password">密&nbsp;码：</label><input class="denglu-input denglu-input-code" type="password" name="password" value="" id='password'/></li>
                <li class="denglu-colspan"><input type="checkbox" id="autologin" />
                <label for="autologin">下次自动登录</label>
                </li>
                <li class="denglu-colspan">
                      <button class="denglu-login" type="submit"><span><span class="denglu-inner">登 录</span></span></button>
                </li>
               </ul>
               </form>
			   <script>
			   $(document).ready(function(){
				$('#loginForm').ajaxForm({
					beforeSubmit:checkForm,
					success:complete,
					dataType:'json'
					}
				);

				function checkForm(){
					if($.trim($("#username").val()).length==0){
						$('#loginInfo').empty();
						$('#loginInfo').append("<label class='error'>请输入用户名</label>");
						$('#loginInfo').show();
						return false;
					}
					
				}
				function complete(responseText, statusText, xhr, $form){
					var result=responseText;
					//alert(result.data);
					if(result=='OK'||result.data=='OK'){
						window.location.href='__APP__';
					}else{
						$('#loginInfo').empty();
						$('#loginInfo').append("<label class='error'>用户名或密码错误</label>");
						$('#loginInfo').show();
					}
				}
				});
			 </script>
             </div>
           </div>
         </div>
       </div>
     </div>
   </div>
 </div>  
</div>
</body>
</html>
